From: Chong Yidong Date: Tue, 29 May 2007 15:30:06 +0000 (+0000) Subject: (url-mailto): Insert body after mail-header-separator if present, so X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~18855^2~2165 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=40165674ac5b1aff6dd93473b3f70bbf91d76c9d;p=emacs.git (url-mailto): Insert body after mail-header-separator if present, so that is is before signature. Suggested by Leo Liu . --- diff --git a/lisp/url/url-mailto.el b/lisp/url/url-mailto.el index 9f20989a0b1..6585ba8e458 100644 --- a/lisp/url/url-mailto.el +++ b/lisp/url/url-mailto.el @@ -100,7 +100,9 @@ (while args (if (string= (caar args) "body") (progn - (goto-char (point-max)) + (goto-char (point-min)) + (or (search-forward (concat "\n" mail-header-separator "\n") nil t) + (goto-char (point-max))) (insert (mapconcat #'(lambda (string) (replace-regexp-in-string "\r\n" "\n" string))